<li class="active"><a>Tường thuật trực tiếp:</a>
<?php foreach($result as $k => $v):?>
	<h2><?php echo $v['name'];?></h2>
	<table class="tbl-list">
		<?php foreach($v['data']  as $kv => $vv):?>
		<tr>
			<?php if($kv == 0):?>
			<th class="first">ĐB:</th>
			<th class="last"><?php echo $vv;?></th>
			<?php else:?>
				<td class="first">G<?php echo $kv;?></td>
				<td class="last">
				<?php 
				if($kv == 4)
				{
					$arr = explode(',',$vv);
					$str = '';
					foreach($arr as $ka => $va)
					{
						$str .= ($str == '' || $ka ==3 ? '' : '&nbsp;-&nbsp;').$va;
						if($ka == 2){
							$str .='<br />';
						}
					}
					echo $str;
				}
				else
				{
					echo str_replace(',','&nbsp;-&nbsp;',$vv);
				}
				?>
				</td>
			<?php endif;?>
		</tr>
		<?php endforeach;?>
	</table>
	<table class="tbl-list">
		<tr>
			<th class="first">Đầu</th>
			<th class="last">Đuôi</th>
		</tr>
		<?php foreach($v['extra'] as $kv => $vv):?>
		<tr>
			<td><?php echo $kv;?></td>
			<td><?php echo $vv;?></td>
		</tr>
		<?php endforeach;?>
	</table>
<?php endforeach;?>
</li>